<? foreach($book_details as $book_detail){ ?>
<div class="page_heading_text"><?=$book_detail->Name ?></div>
<div class="clear"></div> 
<div class="clear" style="margin-bottom:20px;"></div>
<!-- Start Book Package -->  
	<div class="buy_book_area_main">
		<div style="float:left; width:267px; margin-right:28px; overflow-x:hidden;">
			<div id="dhtmlgoodies_slideshow">
				<div id="previewPane"><img src="<?=base_url('images/books/'.$book_detail->Image) ?>" width="264" height="407"></div>
			</div>
		</div> 
	 <!-- End Book Package -->  
	 <!-- Start Book Package -->  
		<div class="bookDetailArea">
			<div class="details_book_text_area">
			  <div class="details_book_title"><?=$book_detail->Name ?></div>
				  <div class="details_book_body_text"><?=$book_detail->Description ?></div>
					  <div class="freeOnCampusHeading">Free oncampus delivery</div>
				  <div class="freeOnCampusHeading_body_text">Order within 2 hours and 19 minutes for delivery on Tuesday, 1st November</div>
			</div>
		</div>
	 <!-- End Book Package --> 
	 <!-- Start InStock Area -->
		<div class="instock_area">
			<div class="instock_price_area_text">
				<div class="instock_image"><img src="<?=base_url('images/instock.png')?>" width="127" height="51" border="0" alt="" /></div>
				<div class="instock_price"><span>EZ price :</span> <span style="color:#fb2d12; font-size:18px;">$<?=$book_detail->Sell_price ?></span> <span style="font-size:13px;">inc.vat</span></div>
				<div class="detail_page_you_save_text">
					<span style="color:#868686; text-decoration:line-through; font-size:16px;">$<?=$book_detail->Real_price ?></span> 
					<span style="color:#9a3400; font-size:16px;">You Save</span> 
					<span style="color:#fb2d12; font-size:16px; font-weight:normal;">$<?=($book_detail->Real_price-$book_detail->Sell_price) ?></span>
				</div>
				<div class="bookDetails"><a href="<?=site_url('cart/add/' . $book_detail->id)?>" id="cart_add_link_<?=$book_detail->id?>" class="cart-add-link"><img src="<?=base_url('images/add_to_busket.png') ?>" width="173" height="70" border="0" alt="" /></a></div>
				<div style="font-size:18px; color:#000; text-align:center; float:left; width:50px; margin:0px 0 0 60px;">Or</div>
				<div class="buy_now_btn_area"><a href="<?=site_url('cart/checkout/' . $book_detail->id)?>"><img src="<?=base_url('images/buybook.png') ?>" width="173" height="70" border="0" alt="" /></a></div>
			</div>
		</div>
	 <!-- End InStock Area --> 
	</div> 
<? } ?>
                
                <div style="float:left; width:914px; margin-left:35px; margin-bottom:35px;"><img src="<?=base_url('images/details_stroke.png') ?>" width="914" height="3" border="0" alt="" /></div>
                <div class="clear"></div> 
                <? foreach($cross_sell as $each_cross_sell){ ?>
                 <!-- Start Book Package -->  
                    <div class="sellBook_area">
                        <div class="sell_book_image_area">
                             <span style="float:left; border:1px solid #999; margin-bottom:14px;">
                                 <img src="<?=base_url('images/books/'.$each_cross_sell->Image) ?>" width="117" height="160" border="0" alt="" />
                             </span>
							<div class="add_to_cart"><a href="<?=site_url('cart/add/' . $each_cross_sell->id)?>"  id="cart_add_link_<?=$each_cross_sell->id?>" class="cart-add-link">ADD TO CART</a></div>
							<div class="buy_book_cart_image"><a href="<?=site_url('cart/checkout/' . $each_cross_sell->id)?>"><img src="<?=base_url('images/curt_image.png') ?>" width="23" height="22" border="0" alt="" /></a></div>
						</div>
						<div class="sell_book_image_area_right">
							<div class="bookTitle"><?=$each_cross_sell->Name ?></div>
                            <div class="ezbook_price">EZ PRICE: $<?=number_format ( $each_cross_sell->Sell_price , 2 , '.' , ',' ) ?></div>
                            <div class="you_save_text"><span>$<?=number_format ( $each_cross_sell->Real_price , 2 , '.' , ',' ) ?></span> You save <a>$<?=number_format ( ($each_cross_sell->Real_price)-($each_cross_sell->Sell_price) , 2 , '.' , ',' ) ?></a></div>
                            <div class="bookDetails"><?=character_limiter($each_cross_sell->Description, 20) ?> ...&nbsp;&nbsp;<a href="<?=book_url($each_cross_sell->id, $each_cross_sell->Name)?>">Details</a></div>
                          <div class="bookDetails"><a href="<?=site_url('cart/checkout/' . $each_cross_sell->id)?>"><img src="<?=base_url('images/curt_buy_books_btn.png') ?>" width="121" height="22" border="0" alt="" /></a></div>
						</div>
                    </div>
                 <!-- End Book Package -->  
				 <? } ?>
	<div class="clear" style="margin-bottom:20px;"></div>       
<div class="clear"></div>